<extend name="Public:base" />

<block name="head">
	<title>分类主页</title>
</block>

<block name="body">
<p align="center">
	<h2>分类主页</h2>
	<a href="add.html">添加页</a>
</p>
<table border="1" width="100%">
	<tr>
		<th>分类名称</th>
		<th>是否推荐</th>
		<th>操作</th>
	</tr>
	<volist name="data" id="vo">
	<tr align="center">
		<td>
			|{$vo.lev|str_repeat="--",###}{$vo.c_name}
		</td>
		<td>
			<if condition="$vo.isrec == 1">
				是
				<else />
				否
			</if>
		</td>
		<td>
			<a href="{:U('edit','id='.$vo['id'])}">编辑</a>
			<a href="{:U('dels','id='.$vo['id'])}">删除</a>
		</td>
	</tr>
	</volist>
</table>
</block>